package com.edais.service;

import java.util.List;
import java.util.Map;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.edais.domain.Loan;
import com.edais.domain.Scattered;

@Service

public interface LoanService {

	// 散标基本信息列表
	public String getLoanBaseInfoList(Map<String,Object> map) throws Exception;
	// 散标详细信息列表
	public String getLoanDetail(Map<String,Object> map) throws Exception;
	// 散标详细信息列表 by jiangbo 
	public Loan getLoanDetailByLoanId(Map<String,Object> map) throws Exception;
	// 散标详细信息列表通过上架表ID  by jiangbo 
	public Loan getLoanDetailBySLoanId(Map<String,Object> map) throws Exception;
	
	// 散标详细信息列表 by jiangbo 
	public Loan getLoanDetailByFinaceId(Map<String,Object> map) throws Exception;
	// 散标详细信息列表
	public String getUserListByLoanId(Map<String,Object> map) throws Exception;
	// 查询微信投资人列表
	public String getUserListByLoanIdForWx(Map<String,Object> map) throws Exception;
	
	/**
	 * 查询所有上架表产品信息
	 * @param map
	 * @return
	 */
	public List<Scattered> queryScatteredLoan(Map<String, Object> map) throws Exception;
	
	/**
	 * 查询所有上架表产品信息
	 * @param map
	 * @return
	 */
	public Map<String, Object>  queryScatteredLoanInfo(Map<String, Object> params) throws Exception;
	/**
	 * 查询所有上架表产品信息总数
	 * @return
	 */
	public String queryScatteredLoanCount(Map<String,Object> map) throws Exception;
	/**
	 * 查询所有上架表产品信息总数
	 * @return
	 */
	public Integer queryScatteredLoanInfoCount(Map<String,Object> map) throws Exception;
	/**
	 * 查询获取标的列表人数
	 * @return
	 */
	public String queryDepositLoanLenderDetailCount(Map<String, Object> map) throws Exception;
	
	public String getLenderMaterial(Map<String,Object> map) throws Exception;
	
	/**
	 * 查询 活期+定期  排序后的产品标的列表
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public List<Scattered> queryWxAndAppLoan() throws Exception;
	
	public String queryBitShowNamePeriod() throws Exception;
	
	public String queryBitShowNameCurrent() throws Exception;
	
	public String queryOrderByIdPeopleNum(Map<String, Object> map) throws Exception;

	public Scattered queryScatteredByLoanId(Map<String, Object> map) throws Exception;
	public Map<String,Object> queryOrderByIdPeopleNumEx(
			Map<String, Object> map2)throws Exception;
	public Map<String, Object> queryDepositLoanLenderDetailCountEx(
			Map<String, Object> map2)throws Exception;

	/**
	 * 查询活期当天投资人列表
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public String currentInvestList(Map<String, Object> map)throws Exception;
	
	/**
	 * 查询活期当天投资人数
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public String currentInvestNum(Map<String, Object> map)throws Exception;
}
